package Day2025_02_23;

public class Demo02_Thread {
    public static void main(String[] args) {
        MyThread02 myThread02 = new MyThread02();
        Thread thread = new Thread(myThread02);
        thread.start();
    }
}

class MyThread02 implements Runnable {
    @Override
    public void run() {
        while (true) {
            System.out.println("hello thread");
        }
    }
}
